package java网络编程.io;

import org.junit.Test;

import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Text1 {
    @Test
    public void test() throws FileNotFoundException {
        try {
            DataOutputStream dataOutputStream = new DataOutputStream(new FileOutputStream("test.dat"));
            dataOutputStream.writeInt(123);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
